package com.groupbuying.task.mq;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 支付中心消息MQ配置文件
 * @Author Vincentxin
 * @Date 2019-05-10
 */
@Component
public class StoreMQConfig {
    //本中心Topic
    public static  String TOPIC ;
    public static  String GROUP_ID;
    public static final String ACCESS_KEY = "LTAIkLoCSLqX7QFG";
    public static final String SECRET_KEY = "anr8xwxEFrN4Rq0Gjw5MXxELuDb12V";
    public static final String NAMESRV_ADDR = "http://onsaddr.mq-internet-access.mq-internet.aliyuncs.com:80";



    //注入对应本中心的topic
    @Value("${RocketMQ_Key.Store.Topic}")
    private void setTOPIC(String TOPIC) {
        StoreMQConfig.TOPIC = TOPIC;
    }
    //注入对应本中心的groupId
    @Value("${RocketMQ_Key.Store.GroupId}")
    private void setGroupId(String GROUPID) {
        StoreMQConfig.GROUP_ID = GROUPID;
    }


    // 全部tag
    public static final String TAG_ALL = "*";

    //商户进行提现
    public static final String WITHDRAW = "WITHDRAW";
}
